<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base/base::head('权限管理',~{::link},~{::script},~{::style})">

    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfgrid.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/ztree/zTree3.1/jquery.ztree.core-3.1.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/ztree/zTree3.1/jquery.ztree.excheck-3.1.min.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery/jqueryMd5.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/my97/WdatePicker.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfPanel.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfValidation.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/wdfSel.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/commonJs/comSel.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jqueryArea/2.4.0/jquery.PrintArea.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery/jqueryMd5.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/commonJs/dateFormat.js'"></script>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfSel.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfGridCss.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfGridCss4.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/gridSearchBar.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfPanel.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/wdfjslib/css/wdfValidation.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/css/listStyle.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/ztree/zTree3.1/css/zTreeStyle/zTreeStyle.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/jqueryUI/jquery-ui-1.9.2.custom/css/smoothness/jquery-ui-1.9.2.custom.css'" type="text/css">
    <script type="text/javascript" th:src="${session.basePath}+'/pages/imp/system/js/permission.js'" charset="utf-8"></script>
</head>
<body>
<form id='searchForm'>
    <div class="searchBar_box">
        <input type='button' class="input_button addnewproject" onclick="addPermission()" value='新增权限'/>
        <input type="button" class="input_button tosearch_panel"  value="点击查询"/>
        <input type="button" class="input_button hideSearch_panel" value="点击查询" style="display: none;">
        <div class='searchBar_Blue' id='searchPanel'>
            <div class="searchInput_left">
                <div class='block'>
                    <div class='label'>
                        权限名称：
                    </div>
                    <div class='input1 input'>
                        <input type='text' name='permission_name' placeholder="全部" maxlength="30"/>
                    </div>
                </div>

                <div class='block'>
                    <div class='label'>
                        所属菜单：
                    </div>
                    <div class='input1 input'>
                        <input type='text' id="permission_menu_SearchPanel"  placeholder="全部" class="ztree" readonly="readonly"/>
                    </div>
                </div>
            </div>
            <div class="optContent">
                <input type='button' class="input_button search_btn" onclick='search()' value='查询'/>
                <input type='button' class="input_button reset_btn" onclick="resetSearch();" value="重置"/>
            </div>

            <div class="split"></div>
        </div>
        <div style="clear:both"></div>
    </div>
</form>

<div class="split"></div>
<div id="permissionGrid"></div>
<div class="pannel_bg">
    <div class='panel' id="addPanel">
        <form id='addForm'>
            <div class='titleBar'><div class="title"></div><div class="closeBtn">返回</div></div>
            <div class='split'></div>
            <div class='content'>
                <table class='panelForm'>
                    <tr><td class='label'>所属菜单：</td><td class='input'><input type='text' id='permission_menu_addPanel' maxlength="100"/></td><td class='info'><span style='color:red;'>*</span></td></tr>
                    <tr><td class='label'>权限名称：</td><td class='input'><input type='text' id='permission_name_addPanel' name="permission_name" maxlength="100" /></td><td class='info'><span style='color:red;'>*</span></td></tr>
                    <tr><td class='label'>权限url：</td><td class='input'><input type='text' id='permission_code_addPanel' name="permission_code" maxlength="100" placeholder="请确保url与代码权限注解配置一致。格式：/模块名/方法名 如：/user/save" /></td><td class='info'><span style='color:red;'>*</span></td></tr>
                </table>
            </div>
            <div class='split'></div>
            <div class='btnBar'><input value="保存" class='okBtn zhuanjiao_btn' type="button"/>
                <input value="取消" class='quxiao_btn' type="button"/></div>
        </form>
    </div>
</div>

<div class="pannel_bg">
    <div class='panel' id="editPanel">
        <form id='editForm'>
            <input type="hidden" id="permission_id_editPanel" name="id" value=""/>
            <div class='titleBar'><div class="title"></div><div class="closeBtn">返回</div></div>
            <div class='split'></div>
            <div class='content'>
                <table class='panelForm'>
                    <tr><td class='label'>所属菜单：</td><td class='input'><input type='text' id='permission_menu_editPanel' maxlength="100"/></td><td class='info'><span style='color:red;'>*</span></td></tr>
                    <tr><td class='label'>权限名称：</td><td class='input'><input type='text' id='permission_name_editPanel' name="permission_name" maxlength="100" /></td><td class='info'><span style='color:red;'>*</span></td></tr>
                    <tr><td class='label'>权限url：</td><td class='input'><input type='text' id='permission_code_editPanel' name="permission_code" maxlength="100" placeholder="请确保url与代码权限注解配置一致。格式：/模块名/方法名 如：/user/save" /></td><td class='info'><span style='color:red;'>*</span></td></tr>
                </table>

            </div>
            <div class='split'></div>
            <div class='btnBar'>
                <input value="保存" class='okBtn zhuanjiao_btn' type="button"/>
                <input value="取消" class='quxiao_btn' type="button"/>
            </div>
        </form>
    </div>
</div>

</body>
</html>